package com.choosefine.it.project.service.Impl;

import com.choosefine.it.project.dao.ProjectInfoForShopMapper;
import com.choosefine.it.project.model.vo.*;
import com.choosefine.it.project.service.ProjectInfoForShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Comments：说明
 * Author：
 * Create Date：2017/2/21
 * Modified By：
 * Modified Date：
 * Why & What is modified：
 * Version：v1.0
 */
@Service("projectInfoForShopService")
public class ProjectInfoForShopServiceImpl implements ProjectInfoForShopService {


    @Autowired
    ProjectInfoForShopMapper projectInfoForShopMapper;

    public ProjectInfoForShopServiceImpl() {
        super();
    }

    @Override
    public List<ProjectInfoForShopVO> getInfoByProjectCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getInfoByProjectCode(params);
    }

    @Override
    public List<TeamInfoListVO> getTeamInfoByTeamUserCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getTeamInfoByTeamUserCode(params);
    }

    @Override
    public List<ProjectInfoListVO> getProjectInfoByTeamUserCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectInfoByTeamUserCode(params);
    }

    @Override
    public List<ProjectInfoListVO> getProjectInfoByManagerUserCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectInfoByManagerUserCode(params);
    }

    @Override
    public List<ProjectInfoListVO> getProjectInfoByProjectName(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectInfoByProjectName(params);
    }

    @Override
    public List<CompanyInfoVO> getCompanyInfoByCompanyName(Map<String, Object> params) {
        return projectInfoForShopMapper.getCompanyInfoByCompanyName(params);
    }

    @Override
    public List<String> getCooperateCodeListByTeamCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getCooperateCodeListByTeamCode(params);
    }

    @Override
    public List<String> getCooperateCodeListByManagerCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getCooperateCodeListByManagerCode(params);
    }

    @Override
    public List<ProjectWithCooperationInfoVO> getProjectCodeAndNameByTeamCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectCodeAndNameByTeamCode(params);
    }

    @Override
    public List<ProjectWithCooperationInfoVO> getProjectCodeAndNameByManagerCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectCodeAndNameByManagerCode(params);
    }

    @Override
    public List<ProjectWithCooperationInfoVO> getProjectCodeAndNameByCompanyCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectCodeAndNameByCompanyCode(params);
    }

    @Override
    public List<ProjectWithCooperationInfoVO> getProjectCodeAndNameBySubUnitCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getProjectCodeAndNameBySubUnitCode(params);
    }

    @Override
    public List<TeamCodeAndNameVO> getTeamInfoByUnitCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getTeamInfoByUnitCode(params);
    }

    @Override
    public List<ProjectInfoListVO> getTeamInfoByUnitCodeOrteamUserCode(Map<String, Object> params) {
        return projectInfoForShopMapper.getTeamInfoByUnitCodeOrteamUserCode(params);
    }
}
